package com.ea.modular.model.sys;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import com.ea.common.node.MenuNode;

/**
 * 用于session存储及权限判断
 * @author jun
 *
 */
public class ShiroUser implements Serializable {

	private static final long serialVersionUID = 1L;

	public String id;          // 主键ID
	public String loginName;   // 账号
	public String name;         // 姓名
	public String officeId;      // 部门id
	public List<String> roleList; // 角色ID集
	public Set<String> roleName;//角色名集
	public String officeName;        // 部门名称
	public Set<String> permissions; // 权限集合
	public List<MenuNode> menus;//所有有权限的菜单
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOfficeId() {
		return officeId;
	}
	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	public String getOfficeName() {
		return officeName;
	}
	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}
	
	public Set<String> getRoleName() {
		return roleName;
	}
	public void setRoleName(Set<String> roleName) {
		this.roleName = roleName;
	}
	public List<String> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<String> roleList) {
		this.roleList = roleList;
	}
	public Set<String> getPermissions() {
		return permissions;
	}
	public void setPermissions(Set<String> permissions) {
		this.permissions = permissions;
	}
	public List<MenuNode> getMenus() {
		return menus;
	}
	public void setMenus(List<MenuNode> menus) {
		this.menus = menus;
	}
	
	
	
}
